import api from '../index';

// 获取首页轮播图的接口
// params === {id:3}
// export const getBanner = (params) => api.get(`/banner/list`,{params:params})

export const getBanner = (params) => api.get(`/banner/list`,{params})


// 文章列表的请求接口
export const getNewList = (params) => api.get(`/cms/news/list`,{params})


// 商品列表的请求接口
export const getGoods = (params) => api.get(`/shop/goods/list`,{params})


// 商品分类的接口

export const category = (params) => api.post(`/shop/goods/category/all`,params)